#!/bin/csh 

set fnin=radon_transcom_E3_1999-2001 
set fnin=radon_obs_capegrim
set fnin=radon_obs_capepoint
set fnin=radon_obs_freiburg 
set fnin=radon_obs_schauinsland
set fnin=radon_obs_bermuda
set fnin=radon_mine_E3_1999-2001 
set fnin=radon_mine_E1_1999-2003 
set fnin=radon_obs_hohenpeissenberg
set fin=${fnin}.nc 

#ln -s ${fnin}_ANN.nc ${fnin}.nc 
cp ${fnin}.nc ${fnin}_ANN.nc 

#cdo mergetime rna*.nc $fin 

# monthly data 

cdo  monmean $fin ${fnin}_mm.nc 
cdo  monstd  $fin ${fnin}_ms.nc 
cdo ymonmean $fin ${fnin}_ymm.nc 
cdo ymonstd  $fin ${fnin}_yms.nc 

# seasonal data 

foreach ss (DJF JJA MAM SON) 
cdo selseas,$ss $fin ${fnin}_${ss}.nc 
end

